import request from '@/utils/request'

export function dictionariesTree() { //字典管理-树
  return request({
    url: '/sys-center/api/system/dictionary/tree',
    method: 'get',
  })
}

export function dictionariesList(data) { //字典管理-列表
  return request({
    url: '/sys-center/api/system/dictionaries',
    method: 'post',
    data
  })
}


export function dictionariesAdd(data) { //字典管理-新增
  return request({
    url: '/sys-center/api/system/dictionary',
    method: 'post',
    data
  })
}

//原 put
export function dictionariesEdit(data) { //字典管理-编辑
  return request({
    url: '/sys-center/api/system/put/dictionary',
    method: 'post',
    data
  })
}

//原 del
export function dictionariesDelete(id) { //字典管理-删除
  return request({
    url: '/sys-center/api/system/dictionary/del/' + id,
    method: 'get',
  })
}


export function dictionariesDetails(id) { //字典管理-详情
  return request({
    url: '/sys-center/api/system/dictionary/' + id,
    method: 'get',
  })
}